package com.start.security.data;

import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpInputMessage;

import java.io.IOException;
import java.io.InputStream;

public class StartHttpInputMessage implements HttpInputMessage {
    private HttpHeaders headers;
    private InputStream body;

    public StartHttpInputMessage(HttpHeaders httpHeaders, InputStream body) {
        this.headers = httpHeaders;
        this.body = body;
    }

    @Override
    public InputStream getBody() throws IOException {
        return body;
    }

    @Override
    public HttpHeaders getHeaders() {
        return headers;
    }
}
